'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  const { router, controller } = app;
  router.get('/blog/', controller.blog.blog.index);
  router.get('/blog/getTypeList/', controller.blog.blog.getTypeList);
  router.get('/blog/getHomeArticle/', controller.blog.blog.getHomeArticle);
  router.get('/blog/getSkillTypeList/:id', controller.blog.blog.getSkillTypeList);
  router.get('/blog/getKeywordList/:str', controller.blog.blog.getKeywordList);
  router.get('/blog/getArticleDetails/:id', controller.blog.blog.getArticleDetails);
  router.get('/blog/getLiveList/', controller.blog.blog.getLiveList);
  router.get('/blog/getInteract/', controller.blog.blog.getInteract);
  router.get('/blog/getSentence/', controller.blog.blog.getSentence);
  router.get('/blog/getSkillType/', controller.blog.blog.getSkillType);
  router.post('/blog/sendMessage/', controller.blog.blog.sendMessage);
  router.post('/blog/replyMessage/', controller.blog.blog.replyMessage);
};
